import { defineStore } from "pinia";
import {ref,reactive} from "vue"
export const informationStore = defineStore("informationStoreId", () => {
    const detailData = ref([
        {
            type:"text",
            prop:"channelKey",
            name:"渠道Key",
            value:null
        },

    
    ])
    const tableProp = reactive(
        {
            name: "supplierList",
            propsList: [
        
                {
                    prop: 'productName',
                    label: '产品名称',
                    type: 'normal',
                    minWidth: '200px',
                    hidden: true,
                },
        
           
                {
                    prop: 'productCode',
                    label: '产品编码',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    prop: 'channelProductName',
                    label: '渠道产品名称',
                    type: 'normal',
                    minWidth: '110px',
                    hidden: true,
                },
                {
                    prop: 'schemeCode',
                    label: '方案编码',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    prop: 'environmentName',
                    label: '环境',
                    type: 'normal',
                    minWidth: '120px',
                    hidden: true,
                },
                {
                    prop: 'scenarioName',
                    label: '场景',
                    type: 'normal',
                    minWidth: '120px',
                    hidden: true,
                },
                {
                    prop: 'enableReporting',
                    label: '是否开启上报',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    prop: 'reportingPlatformCode',
                    label: '上报平台',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    prop: 'enableGrantEquity',
                    label: '发放权益',
                    type: 'normal',
                    minWidth: '80px',
                    hidden: true,
                },
                {
                    type: 'handle',
                    label: '操作',
                    minWidth: '120px',
                    btnType: ' link',
                    slotName: 'handle',
                    hidden: true,
                }
            ]
    })
    
    return {
        detailData, tableProp
    }
})